'use strict';
module.exports = {
	/**
	 * XXXnameXXX
	 * @url admin/pages/kh/dsjzxgl/dsj/getfl_tags 前端调用的url参数地址
	 * data 请求参数
	 * @param {String} params1  参数1
	 */
	main: async (event) => {
		let { data = {}, userInfo, util, filterResponse, originalParam } = event;
		let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
		let { uid } = data;
		let res = { code: 0, msg: "" };
		// 业务逻辑开始-----------------------------------------------------------
			
			
			let info = await vk.baseDao.findByWhereJson({
			  dbName:"a_config",
			  whereJson:{
			   name:"index_activity"
			  }
			});
			
			res.flTag = info.fl_tags
			let fltagArr = []
			
			res.flTag.map((item,index)=>{
				fltagArr.push(
				{
					_id:index,
					flTag:item
				}
				)
			})
			res.fltag = fltagArr
			
			
			console.log(res.fltag);
             


		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}
}
